package com.csd.action.manager;

import java.util.List;

import com.csd.helper.ActionResult;
import com.csd.pojo.ProjectType;
import com.csd.service.IProjectTypeService;

/**
 * 项目类型
 * @author sanmu
 * <br> 创建时间2009-12-17
 *
 */
public class ProjectTypeListAction {

	private List<ProjectType> projectTypeList;
	
	private IProjectTypeService projectTypeService;

	public List<ProjectType> getProjectTypeList() {
		return projectTypeList;
	}

	public void setProjectTypeList(List<ProjectType> projectTypeList) {
		this.projectTypeList = projectTypeList;
	}

	public IProjectTypeService getProjectTypeService() {
		return projectTypeService;
	}

	public void setProjectTypeService(IProjectTypeService projectTypeService) {
		this.projectTypeService = projectTypeService;
	}
	
	public String execute() throws Exception {
		String text = ActionResult.fail;
		//列出所有的项目类型
		projectTypeList = projectTypeService.listAllProjectType();
		text = ActionResult.success;
		return text;
	}
}
